package com.training.method;

public class MethodDemo {

	public static void main(String args[]) {
		int x,y;
		x= 1;
		y = 2;
		System.out.println("x+y="+add(x,y));
		
	}
	public static int add(int a,int b) {
		int c = a+b;
		return c;
	}
}
